home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.6 KB | 108 lines | [TEXT/MPS ] |
- ;
- ; File: TextObjectImaging.a
- ;
- ; Contains: Text object Imaging Interfaces.
- ;
- ; Version: Technology: System 8
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__TEXTOBJECTIMAGING__') = 'UNDEFINED' THEN
- __TEXTOBJECTIMAGING__ SET 1
-
- IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
- include 'ConditionalMacros.a'
- ENDIF
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF &TYPE('__TEXTOBJECTS__') = 'UNDEFINED' THEN
- include 'TextObjects.a'
- ENDIF
- IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
- include 'Quickdraw.a'
- ENDIF
- IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
- ; An alias for OptionBits to make the intended usage in the prototypes easier to understand
- ; typedef OptionBits TextObjectImagingOptions
-
- ; Global direction choices
- ; typedef UInt8 TextObjectDirection
-
-
- kTextObjSysDirection EQU 0
- kTextObjLeftToRight EQU 1
- kTextObjRightToLeft EQU 2
- ; Imaging option bits
-
- kTextObjAlignmentOptionBits EQU 0
- kTextObjJustifyBit EQU 2
- kTextObjCondenseBit EQU 3
- kTextObjElisionBits EQU 4
- ; Alignment options
-
- kTextObjAlignWithDirectionOpt EQU $00
- kTextObjAlignLeftOpt EQU $01
- kTextObjAlignRightOpt EQU $02
- kTextObjAlignCenterOpt EQU $03
- ; Justification options
-
- kTextObjDontJustifyOpt EQU $00
- kTextObjJustifyOpt EQU $04
- ; Condensed font options
-
- kTextObjTryCondenseOpt EQU $00
- kTextObjDontCondenseOpt EQU $08
- ; Elision options
-
- kTextObjElideMiddleOpt EQU $00
- kTextObjElideEndOpt EQU $10
- kTextObjElideBeginningOpt EQU $20
- kTextObjDontElideOpt EQU $30
- ;
- ; extern OSStatus DrawTextObject(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, CGrafPtr grafPort, TextObjectDirection direction, TextObjectImagingOptions options)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawTextObject
- ENDIF
-
- ;
- ; extern OSStatus ComputeTextObjectBounds(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, CGrafPtr grafPort, TextObjectDirection direction, TextObjectImagingOptions fontSubstitutionHint, Fixed *width, Fixed *lineHeight, Fixed *ascent)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION ComputeTextObjectBounds
- ENDIF
-
- ;
- ; extern OSStatus FlowTextObjectOntoLine(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, CGrafPtr grafPort, Fixed availableWidth, TextObjectDirection direction, TextObjectImagingOptions alignAndFitOptions, Fixed *actualWidth)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION FlowTextObjectOntoLine
- ENDIF
-
- ;
- ; extern OSStatus FlowTextObjectIntoBox(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, CGrafPtr grafPort, const Rect *box, TextObjectDirection direction, TextObjectImagingOptions alignAndJustOptions, Fixed *actualExtent, Fixed *lineHeight, TextObjectIndex *clipIndex)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION FlowTextObjectIntoBox
- ENDIF
-
- ;
- ; extern OSStatus ComputeTextObjectBoxExtent(ConstTextObject textObject, TextObjectIndex startIndex, TextObjectIndex endIndex, CGrafPtr grafPort, const Rect *box, TextObjectDirection direction, TextObjectImagingOptions alignAndJustOptions, Fixed *actualExtent, Fixed *lineHeight, TextObjectIndex *clipIndex)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION ComputeTextObjectBoxExtent
- ENDIF
-
- ENDIF
- ENDIF ; __TEXTOBJECTIMAGING__
-
-